Inferring complete initialization of arrays
نویسندگان
چکیده
Wedefine an automaton-based abstract interpretation of a trace semanticswhich identifies loops that definitely initialize all elements of an array to values satisfying a given property, a useful piece of information for the static analysis of Java-like languages. This results in a completely automatic and efficient analysis, that does not use manual code annotations. We give a formal proof of correctness that considers aspects such as side-effects of method calls. We show how the identification of those loops can be lifted to global invariants about the contents of elements of fields of array type, that hold everywhere in the code where those elements are accessed. This makes our workmore significant and useful for the static analysis of real programs. The implementation of our analysis inside the Julia analyzer is both efficient and precise. © 2013 Elsevier B.V. All rights reserved.
منابع مشابه
Synthesis of Antenna Arrays of Maximum Directivity for a Specified Sidelobe Level
Linear and planar antenna arrays are synthesized to have maximum directivity for a specified sidelobe level. The directivity is maximized subject to a given SLL. The beamwidth and the zeros of array factor are studied as well as the directivity. Maximum directivity-arrays are compared through some examples with super-directive, uniform, Dolph-Chebyshev and Riblet-Chebychev arrays to find a comp...
متن کاملInferring Human Upper Body Motion Using Belief Propagation
We present an algorithm for automatic inference of human upper body motion in a natural scene. A graph model is proposed for inferring human upper body motion, and motion inference is posed as a mapping problem between state nodes in the graph model and features in image patches. A multiple-frame inference algorithm is proposed to combine both structural and temporal constraints in human upper ...
متن کاملGenetic Inference of Finite State Machines
This thesis proposes a methodology based on genetic algorithms for inferring finite state machines. It defines basic parameters like fitness functions and chromosomal representation that can be used with canonical genetic algorithm. Different types of finite state machines can be infered. Several improvements were introduced: inner decimal representation has been used to improve the speed of in...
متن کاملSemantic Foundations and Inference of Non-null Annotations
This paper proposes a semantics-based automatic null pointer analysis for inferring non-null annotations of fields in objectoriented programs. The analysis is formulated for a minimalistic OO language and is expressed as a constraint-based abstract interpretation of the program which for each field of a class infers whether the field is definitely non-null or possibly null after object initiali...
متن کاملString Inference from the LCP Array
The suffix array, perhaps the most important data structure in modern string processing, is often augmented with the longest common prefix (LCP) array which stores the lengths of the LCPs for lexicographically adjacent suffixes of a string. Together the two arrays are roughly equivalent to the suffix tree with the LCP array representing the tree shape. In order to better understand the combinat...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Theor. Comput. Sci.
دوره 484 شماره
صفحات -
تاریخ انتشار 2013